package cn.edu.zut.model;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Scope("prototype")
public class Course {

    private String Cno;
    private String Cname;
    private String Cpno;
    private double TestCredit;
    private double RegularCredit;
    private double SumCredit;


    public String getCno() {
        return Cno;
    }

    public void setCno(String cno) {
        this.Cno = cno;
    }

    public String getCname() {
        return Cname;
    }

    public void setCname(String cname) {
        this.Cname = cname;
    }

    public String getCpno() {
        return Cpno;
    }

    public void setCpno(String cpno) {
        this.Cpno = cpno;
    }

    public double getTestCredit() {
        return TestCredit;
    }

    public void setTestCredit(double testCredit) {
        this.TestCredit = testCredit;
    }

    public double getRegularCredit() {
        return RegularCredit;
    }

    public void setRegularCredit(double regularCredit) {
        this.RegularCredit = regularCredit;
    }

    public double getSumCredit() {
        return SumCredit;
    }

    public void setSumCredit(double sumCredit) {
        this.SumCredit = sumCredit;
    }

    @Override
    public String toString() {
        return "Course{" +
                "Cno='" + Cno + '\'' +
                ", Cname='" + Cname + '\'' +
                ", Cpno='" + Cpno + '\'' +
                ", TestCredit=" + TestCredit +
                ", RegularCredit=" + RegularCredit +
                ", SumCredit=" + SumCredit +
                '}';
    }
}
